package com.smartEdu.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import com.smartEdu.dao.CourseCategoryDao;
import com.smartEdu.mapper.CourseCategoryMapper;
import com.smartEdu.model.CourseCategoryModel;

@Repository(value="courseCategoryDaoImpl")
public class CourseCategoryDaoImpl implements CourseCategoryDao{
	@Autowired(required=false)
	@Qualifier("courseCategoryMapper")
	private CourseCategoryMapper mapper;

	@Override
	public List<CourseCategoryModel> getCourseCategoryRoot() {
		return mapper.getCourseCategoryRoot();
	}

	@Override
	public List<CourseCategoryModel> getCourseCategoryChidByPK(String pk) {
		return mapper.getCourseCategoryChidByPK(pk);
	}

	@Override
	public List<CourseCategoryModel> getCourseCategoryChid() {
		return mapper.getCourseCategoryChid();
	}

}
